#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vi: ts=4 expandtab
#
# Copyright (C) 2012 KT
#
# Author: Choonho Son <choonho.son@kt.com>
#

from  cloudutils import CloudUtils
import os.path
import os
import re

if __name__ == "__main__":
	from optparse import OptionParser
	usage = "usage:%prog [options] arg"
	parser = OptionParser()
	parser.add_option("-s","--sample",dest="sample",help="Sample Config file")
	parser.add_option("-o","--output",dest="output",help="Output log path")
	(options,args) = parser.parse_args()

	inst = CloudUtils()

	result = ""
	if options.sample:
		target = options.sample
		result = inst.callModule(target)
	else:
		result = inst.install()

	inst.removeMe()
	inst.removeScript()
	
